package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 生成合约编号请求类
 * @date 2020-12-02 10:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "生成合约编号请求类", description = "生成合约编号请求类")
public class GenerateContractNoReq extends BaseReqObj {

    private static final long serialVersionUID = -8791676191233433221L;

    @ApiModelProperty(value = "需要根据模版生成合约或档案时，该字段必填", notes = "需要根据模版生成合约或档案时，该字段必填", dataType = "Integer")
    private Integer templateId;

    /**
     * 合约类型Code
     */
    @ApiModelProperty(value = "合约类型 Code，非制式必填，制式会根据 templateId 获取对应的合约类型 Code",
        notes = "合约类型 Code，非制式必填，制式会根据 templateId 获取对应的合约类型 Code", dataType = "String")
    private String contractTypeCode;

    /**
     * 公司编码
     */
    @ApiModelProperty(value = "公司编码", notes = "公司编码", dataType = "String", required = true)
    @NotBlank(message = "公司编码不能为空")
    private String companyCode;

}
